package com.heima.media.service;

import com.heima.common.dto.PageResponseResult;
import com.heima.common.dto.ResponseResult;
import com.heima.media.dto.WmMaterialDto;
import com.heima.media.entity.WmMaterial;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 自媒体图文素材信息表 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-07-01
 */
public interface IWmMaterialService extends IService<WmMaterial> {

    ResponseResult uploadPicture(MultipartFile file);

    PageResponseResult listByPage(WmMaterialDto dto);
    //素材收藏
    ResponseResult footageCollection(Integer id);
    //取消素材收藏
    ResponseResult unsolicitedFootage(Integer id);
    //删除素材
    ResponseResult deleteFootage(Integer id);
}
